--[[

        call_obj.lua
        exported by excel2lua.py
        from file:call_obj.xlsx

--]]

local _data = {
  [1] = {id = 1,name = '法术墙',res = 'Effects/MagicWall',attr = 103,per = 1000,type = 'HATRED',continuce = 2,skillId = 0,show = 'StandingActor',pos = 1,},
  [2] = {id = 2,name = '协同石',res = 'Effects/MoonStone',attr = 101,per = 700,type = 'COLLABORATION',continuce = 2,skillId = 18,show = 'SimpleActor',pos = 2,},
  [3] = {id = 3,name = '贪狼',res = 'werwolf',attr = 0,per = 60,type = 'INHERIT',continuce = 3,skillId = 0,show = 'FightActor',pos = 3,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
}

local call_obj={}

function call_obj.length() 
   return #_data 
end 

function call_obj.indexOf(index) 
   return _data[index] 
end 

function call_obj.get(id) 
  return call_obj.indexOf(id_to_index[id])
end 

return call_obj